import { mergeConfig } from 'vite';
import eslint from 'vite-plugin-eslint';
import baseConfig from './vite.config.base';
import { resolve } from 'path';
export default mergeConfig(
  {
    mode: 'development',
    server: {
      open: true,
      host:true,
      port:9628,
      fs: {
        strict: false,
      },
    },
    plugins: [
      eslint({
        cache: false,
        include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
        exclude: ['node_modules'],
      }),
    ],
      resolve: {
        alias: [
          {
            find: '@',
            replacement: resolve(__dirname, '../src'),
          },
          {
            find: 'assets',
            replacement: resolve(__dirname, '../src/assets'),
          },
         
        ],
        extensions: ['.ts', '.js'],
      },
  },
  baseConfig
);
